package com.wangfei.lecture.SM;

import java.util.Base64;

public class TestSign {
    public static void main(String[] args){
        String publicKey = "04750e6b8b938a008b8660689f03a8358effe645546d377c2f746f2380f660908a9a1fd5091c7b5c646f66b0c14f14ebe7b8929cfe69cabf1136caabffc60f474b";
        String signature = "dwq+QGjFdGD4uME8oTI7XM6GD7Ujsbxtn02q32E4X3xUbckAj/D8CZWfk2GvA1uvdVc6OSvN/zz2POV+qVfSgQ==";
        String content = "appId=1bkF7wwxsz&authorizeNo=IBy92QKL3iOT&certType=01&certifId=110108197806010974&extensions=&findModel=1&nonceStr=RpzT7jrFYIUu0MB8&realNm=客户二&sn=ra6IsQcjeIdgh7yB022XxwaxHhHqtaXk&symmetricKey=a804363452911dd6&timestamp=1646027506205";
        System.out.println(SMUtil.sm2SignValidate(publicKey, Base64.getDecoder().decode(signature),content));
    }
}
